<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>

<jsp:include page="import.jsp" flush="true" />
 <body>
<!-- 
<TABLE>
<TR>
	<TD>名称</TD>
	<TD>连接地址</TD>
	<TD>操作</TD>
</TR>
<s:iterator value="rb.resultList" id="m" status="cust_stat">  
 <TR class='<s:if test="#cust_stat.even">anthor_tr</s:if>'>  
		<TD><s:property value="MENUNAME"/></TD>
		<TD><s:property value="LINKURL"/></TD>
		<TD><a href="javascript:edit(<s:property value="ID"/>,'<s:property value="MENUNAME"/>','<s:property value="LINKURL"/>')">修改</a></TD>
</TR>
 </s:iterator> 
</TABLE>
<jsp:include page="pageination.jsp" flush="true" /> 
-->
<div id="resultSpan"></div>
<div id="editFormDiv">
	<FORM id="editForm" METHOD=POST ACTION="u.action">
	<INPUT TYPE="hidden" id="id" name="id">
	<INPUT TYPE="hidden" id="index" name="index">
	<TABLE>
	<TR>
		<TD>名称</TD>
		<TD><INPUT TYPE="text" id="name" name="name"></TD>
	</TR>
	<TR>
		<TD>地址</TD>
		<TD><INPUT TYPE="text" id="value" name="value"></TD>
	</TR>
	</TABLE>
	</FORM>
</div>

 </body>
<SCRIPT LANGUAGE="JavaScript">
var editForm = new MoreInfoView('编辑窗口',300,200,function(){
	wait.show();
	$('#editForm').submit();
});

editForm.setContent($('#editFormDiv'));

var edit = function(id,name,value){
	editForm.showWithData({'ID':id,'name':name,'value':value,'index':'demoUpdate'});
}




var tableParam = {
	div:'#resultSpan',
	css:'text-align:center;width:100%',
	queryParam:'index=sysTable&page=1&maxNum=10',
	title:null,
	elemt:{
		'表名':{key:'TABLE_NAME',order:true},
		'表中数据':{key:'NUM_ROWS',order:true,method:function(data){ return data+'%';}},
		'操作':{key:'',describe:function(rb){return '<a href="javascript:deleteData(\''+rb["TABLE_NAME"]+'\')">删除</a>';}}
	}
};
QueryTable(tableParam);
	

</SCRIPT>